import request from '@/utils/request'
const serviceName = 'Common'

export function queryList(data) {
  return request({
    url: serviceName + '/QueryData/Query',
    method: 'post',
    data
  })
}

export function queryModel(data) {
  return request({
    url: serviceName + '/QueryData/GetData',
    method: 'post',
    data
  })
}

export function saveModel(data) {
  return request({
    url: serviceName + '/QueryData/Save',
    method: 'post',
    data
  })
}

export function removeModel(data) {
  return request({
    url: serviceName + '/QueryData/Delete',
    method: 'post',
    data
  })
}

export function importModel(data) {
  return request({
    url: serviceName + '/QueryData/Import',
    method: 'post',
    data
  })
}

export function saveRelate(data) {
  return request({
    url: serviceName + '/QueryData/SaveRelate',
    method: 'post',
    data
  })
}

export function removeRelate(data) {
  return request({
    url: serviceName + '/QueryData/RemoveRelate',
    method: 'post',
    data
  })
}

export function getNotifys(data) {
  return request({
    url: serviceName + '/QueryData/QueryNotifys',
    method: 'post',
    data
  })
}

export function readNotify(data) {
  return request({
    url: serviceName + '/QueryData/ReadNotify',
    method: 'post',
    data
  })
}

export function queryAuth(data) {
  return request({
    url: serviceName + '/QueryData/QueryAuth',
    method: 'post',
    data
  })
}

export default {
  queryList,
  queryModel,
  saveModel,
  removeModel,
  importModel,
  saveRelate,
  removeRelate,
  getNotifys,
  readNotify,
  queryAuth
}
